﻿using Helpers.Common;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace RemoteControl.Service.Wcf
{
    [ServiceContract]
    public interface IRemoteControlWcfService
    {
        //[OperationContract, WebInvoke(
        //    Method = "POST"
        //    , RequestFormat = WebMessageFormat.Json
        //    , BodyStyle = WebMessageBodyStyle.Wrapped
        //    , ResponseFormat = WebMessageFormat.Json
        //    , UriTemplate = "/GenerateMontlyReport")]
        [OperationContract, WebInvoke(
            Method = "*",
            BodyStyle = WebMessageBodyStyle.Wrapped,
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "/PressKey?"
                            + "key={key}")]
        Response<string> PressKey(string key);
    }
}
